<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<head>
  
    <link href="css/bootstrap.min.css" rel="stylesheet">
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
	
	<!-- my style -->
	<link href="css/dopstyle.css" rel="stylesheet">
</head>


<%
	if (session.getAttribute("Username")==null)
	{
%>	
		<form class="form-inline" role="form" method="post" action="/NCProjectWeb/LoginServlet">
				 <div class="form-group">
    				<label class="sr-only" for="exampleInputEmail2">Login</label>
    				<input type="text" name="login" class="form-control" placeholder="Login">
  				</div>
  				
  				<div class="form-group">
    				<label class="sr-only" for="exampleInputEmail2">Password</label>
    				<input type="text" type="password"  name="password" class="form-control" placeholder="Password">
  				</div>
			
			<button type="submit" class="btn btn-default">Войти</button>	
					
		</form>
		<a href="Registration.jsp">  или Зарегистрироваться</a>
<%
	}
	else 
	{
%> 
		<form action="/NCProjectWeb/LogoffServlet" method="post">
		Привет: 
		<a href="UserPage.jsp">
			<%= session.getAttribute("Username") %>
		</a>
		<button type="submit" class="btn btn-default">Выйти</button>
		</form>
<%
	}
%>

